<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\Fangattr
 *
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fangattr newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fangattr newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Fangattr query()
 * @mixin \Eloquent
 */
class Fangattr extends Base
{
    //
    public function getAllList($where)
    {
        $data = $this->where($where)->get()->toArray();
        return $this->get_tree_list($data);
    }

    public function getAllPidList()
    {
        $data = $this->all()->toArray();
        return $this->get_tree_list($data);
    }
}
